<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Quản lí người dùng</title>
</head>
<body>
	<s:url  action="Users" var="addUsers">
		<s:param name="actionType">add</s:param>
	</s:url>
	<s:a href="%{addUsers}">Add user </s:a>
	<br>
	<form action="Save1">
		<table border="1">
			<tr>
				<td><table border="1" >
					<thead>
						<tr>
							<th>Id</th>
							<th>Username</th>
               				<th>Password</th>
               				<th>FirstName</th>
               				<th>LastName</th>
               				<th>Address</th>
               				<th>Birthday</th>
               				<th>Administrator</th>
                			<th>State</th>
                			<th>Action</th>
						</tr>
					</thead>
					
					<tbody>
        				<s:iterator status="status" value="users">
            				<tr>
<%--                 				<td><s:property value="#status.index+1"></s:property></td> --%>
								<td><s:property value="id1"></s:property></td>
                				<td><s:property value="username"></s:property></td>
                				<td><s:property value="password"></s:property></td>
                				<td><s:property value="firstName"></s:property></td>
                				<td><s:property value="lastName"></s:property></td>
                				<td><s:property value="address"></s:property></td>
                				<td><s:property value="birthday"></s:property></td>
                				<td><s:property value="administrator"></s:property></td>
	               				<td><s:property value="state"></s:property></td>
	               				<td><table><tr>
	               					<td>
	               					<a href="<s:url action="delete"><s:param name="id1" value="id1"></s:param></s:url>">Delete</a>
								    </td>
								    <td>
	               					<a href="<s:url action="edit"><s:param name="id2" value="id1"></s:param></s:url>">Edit</a>
								    </td>
	               				</tr></table></td>
                			</tr>
       					</s:iterator>
   					</tbody>
				</table></td>
			</tr>
		</table>
     	</form>	 
	
</body>
</html>